'use strict';

module.exports = app => {
  const { STRING, INTEGER, DATE } = app.Sequelize;
  const ExperimentCategory = app.model.define('experiment_category', {
    id: {
      type: INTEGER(10),
      primaryKey: true
    },
    experimentId: INTEGER(11),
    gradePhase: INTEGER(1),
    subjectId: INTEGER(3),
    versionId: INTEGER(5),
    textbookId: INTEGER(5),
    chapterId: INTEGER(10),
    sectionId: INTEGER(10),
    rank: INTEGER(11)
  });

  return ExperimentCategory;
};
